/**
 * 作者: hwp
 * 日期: 2025-05-21 15:39:11
 * 备注: 用户联盟互助
 */
package com.motu.monstercity.server.game.userdata;

import com.motu.vertx.module.utility.toolset.TimeUtils;
import io.vertx.core.json.JsonObject;

public class UserUnionReciprocity extends UserUnionReciprocityModel {
    public UserUnionReciprocity() {
        super();
    }

    public JsonObject insert() {
        putResetTime(TimeUtils.getCurTime());
        return super.insert();
    }

    public void reset() {
        if (!TimeUtils.isToday(getResetTime())) {
            putDayGetUnionCoin(0);
            putResetTime(TimeUtils.getCurTime());
            update();
        }
    }
}
